import UsersApi from "../api/usersusers.js"
export const init = () => {
    $.ajaxSetup({
        beforeSend(jqXHR) {
            const token = UsersApi.getToken();
            // console.log('---', token);
            token && jqXHR.setRequestHeader("authorization", `Bearer ${token}`);
        }
    });
}